{ "swagger" : "2.0", "info" : { "description" : "AI Customer Service application, built during the Cloud and Big Data course at Columbia University.", "version" : "1.0.0", "title" : "AI Customer Service API" }, "host" : "p3h4nitnvh.execute-api.us-east-1.amazonaws.com", "basePath" : "/v1", "schemes" : [ "https" ], "paths" : { "/chatbot" : { "post" : { "operationId" : "sendMessage", "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "parameters" : [ { "in" : "body", "name" : "BotRequest", "required" : true, "schema" : { "$ref" : "#/definitions/BotRequest" } } ], "responses" : { "200" : { "description" : "200 response", "schema" : { "$ref" : "#/definitions/BotResponse" }, "headers" : { "Access-Control-Allow-Origin" : { "type" : "string" } } }, "500" : { "description" : "500 response", "schema" : { "$ref" : "#/definitions/Error" } }, "403" : { "description" : "403 response", "schema" : { "$ref" : "#/definitions/Error" } } } }, "options" : { "consumes" : [ "application/json" ], "produces" : [ "application/json" ], "responses" : { "200" : { "description" : "200 response", "schema" : { "$ref" : "#/definitions/Empty" }, "headers" : { "Access-Control-Allow-Origin" : { "type" : "string" }, "Access-Control-Allow-Methods" : { "type" : "string" }, "Access-Control-Allow-Headers" : { "type" : "string" } } } } } } }, "definitions" : { "Empty" : { "type" : "object", "title" : "Empty Schema" }, "BotRequest" : { "type" : "object", "properties" : { "messages" : { "type" : "array", "items" : { "$ref" : "#/definitions/Message" } } } }, "Message" : { "type" : "object", "properties" : { "type" : { "type" : "string" }, "unstructured" : { "$ref" : "#/definitions/UnstructuredMessage" } } }, "UnstructuredMessage" : { "type" : "object", "properties" : { "id" : { "type" : "string" }, "text" : { "type" : "string" }, "timestamp" : { "type" : "string", "format" : "datetime" } } }, "BotResponse" : { "type" : "object", "properties" : { "messages" : { "type" : "array", "items" : { "$ref" : "#/definitions/Message" } } } }, "Error" : { "type" : "object", "properties" : { "code" : { "type" : "integer", "format" : "int32" }, "message" : { "type" : "string" } } } } }